# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=gtp-scan
pkgver=0.7
pkgrel=5
groups=('blackarch' 'blackarch-scanner' 'blackarch-networking' 'blackarch-mobile')
pkgdesc='A small python script that scans for GTP (GPRS tunneling protocol) speaking hosts.'
arch=('any')
url='http://www.c0decafe.de/'
license=('custom:unknown')
depends=('python2' 'python2-ipy')
source=("http://c0decafe.de/tools/gtp_scan-$pkgver.tar.gz")
sha512sums=('cf5b214be63ee41644c0cc1284e7ab3d66f74b0f07450395f0579932e8379cc0fa4fbfd2be432724c56840bbded2c4ffa1a1e03ce141d88e839997ff02109c8b')

prepare() {
  cd "gtp_scan-$pkgver"

  sed -i 's|/usr/bin/env python|/usr/bin/env python2|g' gtp-scan.py
}

package() {
  cd "gtp_scan-$pkgver"

  install -Dm 755 gtp-scan.py "$pkgdir/usr/bin/$pkgname"
}

